import ajax from './ajax'

export const reqAddress = geohash => ajax('/api/position' + geohash)

export const reqCategorys = () => ajax('/api/index_category')

export const reqShops = ({latitude, longitude}) => ajax('/api/shops', {latitude, longitude})

export const reqCaptchas = () => ajax('/api/captchas')

export const accoutLogin = (name, pwd, captcha) => ajax('/api/login_pwd',{name, pwd, captcha}, 'POST')

